# include "BoundingSphere.h"

namespace WuguiEngine
{
	namespace Math
	{
		BoundingSphere::BoundingSphere()
		{
			center = D3DXVECTOR3();
			radius = 0;
		}

		BoundingSphere::BoundingSphere(float x, float y, float z, float r)
		{
			center = D3DXVECTOR3(x, y, z);
			radius = r;
		}

		BoundingSphere::BoundingSphere(D3DXVECTOR3 pos, float r)
		{
			center = pos;
			radius = r;
		}

		void BoundingSphere::SetCenter(D3DXVECTOR3 pos)
		{
			center = pos;
		}

		void BoundingSphere::SetRadius(float r)
		{
			radius = r;
		}

		D3DXVECTOR3* BoundingSphere::GetpCenter()
		{
			return &center;
		}

		float BoundingSphere::GetRadius()
		{
			return radius;
		}
	}
}